Layout Guidelines

From iGeek
Jump to: navigation, search

The site uses a few templates to do a lot of article layouts.

Article Inclusion (referencing other articles)

There are a few ways to include articles:

A1 Normal

Include: {{A1| $PAGE_NAME }}

This will display a formatted version of:

  • a summary of the article $PAGE_NAME
  • with the first image used in $PAGE_NAME
  • and it will link to the full article $PAGE_NAME
Main article: Layout Guidelines

A1 FakeName

Include: {{A1| $PAGE_NAME | $FAKE_NAME }} This is like the normal {A1} template, but has a second parameter (after the vertical bar / pipe character) : $FAKE_NAME

  • $FAKE_NAME is what the name of the article looks like when included here, but it will link to $PAGE_NAME
  • Q: Why have a FAKE_NAME?
  • A: Sometimes the $PAGE_NAME is a long form to get uniqueness and hierarchy, and you want a simple name for the user to understand. Or sometimes an article has multiple contexts (is overloaded). So a review of a book about two people, on a topic: that article should be linked to from each area, with different elements as the the name (person 1, person 2, or subject).
Main article: Layout Guidelines

A1 LEDE2

A1+LEDE2

Include: {{A1| $PAGE_NAME | $FAKE_NAME }}| LEDE2 This is like the A1+FAKE_NAME but has another parameter "LEDE2"

  • In a few articles, I not only want a FAKE_NAME, but I want a different lede (summary). So LEDE2 is the name of an alternate summary (that you can imbed in that $PAGE_NAME article).
  • This allows an article to have two or more heads (cover two or more topics) at the same time.
Main article: Layout Guidelines

A0

A0

Include: {{A0| $PAGE_NAME | $FAKE_NAME | $CONTENT }}

  • This is like the A1+FAKE_NAME but you embed the content you want in the article inline (instead of getting it from $PAGE_NAME).
  • There's a trick where if the $PAGE_NAME is the name of the page you're on, mediawiki knows to not link that item to anywhere. So I can fake it out by claiming the source page is the page I'm on -- give it any $FAKE_NAME I want (it looks like an article, but can't link anywhere), and embed whatever content I want in in.
Main article: Layout Guidelines


Article Creation (editing elements)

An article has a few elements:

  • Things shown if this article/page is included somewhere else (this is usually a small image, a summary description) all wrapped in < includeonly>{{CONTENT}}</includeonly> tags
  • Things shown only if it's being read fully (and not just included) : the non-preview stuff (like a full size image and content) is wrapped by <noinclude>{{CONTENT}}</noinclude>


* <nowiki>
{CONTENT}


</nowiki - this is an indented (block quoted) grey-table, small border used for parenthetical thoughts, including other articles, notes, and the like.



  • <nowiki>
{CONTENT} 

</nowiki - this is a table, no borders just to keep things grouped, in you insert whatever content you want

* <nowiki>
{CONTENT}


</nowiki - this is an indented (block quoted) grey-table, small border used for parenthetical thoughts, including other articles, notes, and the like.




Something wicked, this way comes

References

  • Links

[[Category:]]