| Latest revision |
Your text |
| Line 1: |
Line 1: |
| <includeonly>{{disline|This article on '''{{PAGENAME}}''' is a shard, or a part, of a larger article ([[{{{article|{{{1}}}}}}]]). Please direct all [{{fullurl:{{{article|{{{1}}}}}}|action=edit}} edits there].}} | | <includeonly>This article on {{{section|{{{2}}}}}} is a shard, or a part, of a larger article ([[{{{article|{{{1}}}}}}]]). Please direct all [[{{{article|{{{1}}}}}}/edit|edits there]]. |
|
| |
|
| {{#lsth:{{{article|{{{1}}}}}}|{{{section|{{{2}}}}}}}} | | {{#lsth:{{{article|{{{1}}}}}}|{{{section|{{{2}}}}}}}} |
| {{#if:{{{refs|{{{3|}}}}}}|
| | |
| ==References== | | ==References== |
|
| |
|
| {{reflist}} | | {{reflist}}[[Category: Battlestar Wiki Shards]]</includeonly><noinclude> |
| |{{void}}
| |
| }}[[Category: Battlestar Wiki Shards]]</includeonly><noinclude> | |
| =Documentation= | | =Documentation= |
| A '''shard''' is a ''section of larger article'' that is presented individually for end-user clarity. These were previously redirects, but are better suited to be shown as individual articles, without having to directly copy and paste them as such. | | A '''shard''' is a ''section of larger article'' that is presented individually for end-user clarity. These were previously redirects, but are since better suited to be shown individual. Such is the case with articles on individual worlds of the [[Twelve Colonies of Kobol]]. |
| | |
| This allows articles to be "sliced" from the main one with ease.
| |
| | |
| A pertinent example of its use is to create shards focused on individual worlds that comprise [[The Twelve Colonies of Kobol]], as exemplified below.
| |
| | |
| ==Usage==
| |
| | |
| <pre>
| |
| {{shard
| |
| |article=
| |
| |section=
| |
| |refs=
| |
| }}</pre>
| |
| | |
| * '''article''': The name of the full article page.
| |
| * '''section''': The section of the article.
| |
| ** Note: If the section has fancy formatting, hyperlink, etc., be sure to copy the wikitext that includes this. Otherwise, it'll break.
| |
| * '''refs''': Creates a references section. Typically hidden by default, otherwise marked '''Y''' to make visible.
| |
| ** Note: By default, any references that are used in the page will show up as footnotes at the bottom of the shard. Enabling this just makes them prettier.
| |
| | |
| ===Example===
| |
| | |
| <pre>{{shard|article=The Twelve Colonies of Kobol|section=Caprica}}</pre>
| |
| | |
| ==== Output ====
| |
| | |
| {{shard|article=The Twelve Colonies of Kobol|section=Caprica}}
| |
| | |
| == Shorter Form ==
| |
| | |
| Alternately, here is the shorter form of the above, without needing to define the fields before hand (as above):
| |
| | |
| {{tlp|shard|''title of article''|''section of article''}}
| |
| | |
| ===Example===
| |
| | |
| <pre>{{shard|The Twelve Colonies of Kobol|Aquaria}}</pre>
| |
|
| |
|
| ====Output==== | | ==Example== |
|
| |
|
| {{shard|The Twelve Colonies of Kobol|Aquaria}} | | <pre>{{shard|The Twelve Colonies of Kobol|Caprica}}</pre> |
|
| |
|
| [[Category:Battlestar Wiki Templates]]
| | Output: {{shard|The Twelve Colonies of Kobol|Caprica}} |
| <templatedata>
| |
| { | |
| "params": {
| |
| "article": {
| |
| "aliases": [
| |
| "1"
| |
| ],
| |
| "label": "Article Name",
| |
| "type": "wiki-page-name",
| |
| "required": true
| |
| },
| |
| "section": {
| |
| "aliases": [
| |
| "2"
| |
| ],
| |
| "label": "Section of Article",
| |
| "description": "Note: It is important to use the section header as formatted, including any wikitext (excluding the equal signs, e.g. =)",
| |
| "type": "line",
| |
| "required": true
| |
| },
| |
| "refs": {
| |
| "aliases": [
| |
| "3"
| |
| ],
| |
| "label": "References",
| |
| "description": "Show references in a prettier way, should they be part of the shard being called from the main article.",
| |
| "type": "string",
| |
| "suggestedvalues": [
| |
| "Y"
| |
| ]
| |
| }
| |
| }
| |
| } | |
| </templatedata></noinclude>
| |