Template:AppItem: Difference between revisions
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
|colspan="2"| | |colspan="2"|<h4>[[Special:myLanguage/{{{1}}}|{{{3}}}]]</h4> | ||
|- | |- | ||
|[[Image:{{{2}}}|48px|link=Special:myLanguage/{{{1}}}]]||<noinclude> | |[[Image:{{{2}}}|48px|link=Special:myLanguage/{{{1}}}]]||<noinclude> | ||
Line 6: | Line 5: | ||
This template makes entries for application lists. It requires three arguments: A link (without the Special:myLanguage prefix), the name of an image file and a title. Even if the link and the title is the same, the title must be there since it should be translatable. It is meant to be used within a <nowiki>{| ... |}</nowiki> group and to be immediately followed by a short text. | This template makes entries for application lists. It requires three arguments: A link (without the Special:myLanguage prefix), the name of an image file and a title. Even if the link and the title is the same, the title must be there since it should be translatable. It is meant to be used within a <nowiki>{| ... |}</nowiki> group and to be immediately followed by a short text. | ||
The <nowiki><h4></nowiki> tag should mark it as a headline and make it appear in the list of contents, but apparently these tags are not picked up by the wiki software, when appearing inside a template. See [[System Settings]] for a page using this template along with other items entered "by hand". Using ==== won't work either - they | The <nowiki><h4></nowiki> tag should mark it as a headline and make it appear in the list of contents, but apparently these tags are not picked up by the wiki software, when appearing inside a template. See [[System Settings]] for a page using this template along with other items entered "by hand". Using ==== won't work either - they can't appear inside a table, it seems. | ||
Example: | Example: |
Latest revision as of 11:00, 8 August 2011
|colspan="2"|
[[Special:myLanguage/{{{1}}}|{{{3}}}]]
|- |[[Image:{{{2}}}|48px|link=Special:myLanguage/{{{1}}}]]||
This template makes entries for application lists. It requires three arguments: A link (without the Special:myLanguage prefix), the name of an image file and a title. Even if the link and the title is the same, the title must be there since it should be translatable. It is meant to be used within a {| ... |} group and to be immediately followed by a short text.
The <h4> tag should mark it as a headline and make it appear in the list of contents, but apparently these tags are not picked up by the wiki software, when appearing inside a template. See System Settings for a page using this template along with other items entered "by hand". Using ==== won't work either - they can't appear inside a table, it seems.
Example:
{| {{AppItem|System Settings/Account Details|Image:Preferences-desktop-user.png|Account Details}} Some descriptive text. |}
displays
Account Details | |
Some descriptive text. |