ModEnc:Templates: Difference between revisions
→Markup Assistance: added Template:Rpo |
added Template:!, Template:Rules, Template:Art, Template:Sound, Template:Ai, created seperate section for quick link generators |
||
Line 37: | Line 37: | ||
===Markup Assistance=== | ===Markup Assistance=== | ||
; [[Template:!]] : Gets replaced by a pipe character ("|"), for situations where a real "|" would disrupt the template-syntax | |||
; [[Template:Arr]] : Arrow-template, to quickly generate arrows in text | ; [[Template:Arr]] : Arrow-template, to quickly generate arrows in text | ||
; [[Template:Edit]] : Link-template, outputs the full url to an edit page | ; [[Template:Edit]] : Link-template, outputs the full url to an edit page | ||
; [[Template:Equal]] : Gets replaced by an equal sign, | ; [[Template:Equal]] : Gets replaced by an equal sign ("="), for situations where a real "=" would disrupt the template-syntax | ||
; [[Template:Imglink]] : Image-template, to link images to something other than their Image: page | ; [[Template:Imglink]] : Image-template, to link images to something other than their Image: page | ||
; [[Template:Ini]] : Generates an md'd link to an INI-file page | ; [[Template:Ini]] : Generates an md'd link to an INI-file page | ||
Line 62: | Line 63: | ||
; [[Template:Wishlist/TOC]] : Wishlist TOC template, the RockPatch Wishlist's table of contents | ; [[Template:Wishlist/TOC]] : Wishlist TOC template, the RockPatch Wishlist's table of contents | ||
; [[Template:XCC NavBar]] : Navigational template for quick-jumping between the tools pages | ; [[Template:XCC NavBar]] : Navigational template for quick-jumping between the tools pages | ||
===Quick Link Generators=== | |||
; [[Template:Td]] : Creates {{td}} | |||
; [[Template:Ra]] : Creates {{ra}} | |||
; [[Template:Ts]] : Creates {{ts}} | |||
; [[Template:Fs]] : Creates {{fs}} | |||
; [[Template:Ra2]] : Creates {{ra2}} | |||
; [[Template:Yr]] : Creates {{yr}} | |||
; [[Template:Rules]] : Creates {{rules}} | |||
; [[Template:Art]] : Creates {{art}} | |||
; [[Template:Sound]] : Creates {{sound}} | |||
; [[Template:Ai]] : Creates {{ai}} | |||
===Other=== | ===Other=== | ||
Line 67: | Line 80: | ||
; [[Template:Q]] : Minitemplate used to indicate "unknown/untested" on functionality tables, checklists and the like | ; [[Template:Q]] : Minitemplate used to indicate "unknown/untested" on functionality tables, checklists and the like | ||
; [[Template:Y]] : Minitemplate used to indicate "yes" on functionality tables, checklists and the like | ; [[Template:Y]] : Minitemplate used to indicate "yes" on functionality tables, checklists and the like | ||
==Creating your own Templates== | ==Creating your own Templates== | ||
You are free to add your own templates, under three conditions: | You are free to add your own templates, under '''three conditions''': | ||
#The templates serves an actual valuable purpose | #'''The templates serves an actual valuable purpose''' | ||
#You add it to the list above | #'''You add it to the list above''' | ||
#It fits the general style of the rest | #'''It fits the general style of the rest''' | ||
To achieve point three, | To achieve point three, please consult [[ModEnc:Tables]], [[ModEnc:Styleguide]], and make use of pre-existing templates, e.g. the ones from the [[#Bars and Boxes|Bars and Boxes]] section. | ||
In addition to the rules above, this should be included on template-pages: | In addition to the rules above, this should be included on template-pages: |
Revision as of 13:40, 23 October 2006
This is a list of Templates available on ModEnc. It will be updated everytime a new one is added. Usage of these templates is simple: Just put {{templatename}} somewhere in a page's text, and it gets replaced by the template. In some cases, you have to give a parameter.
If you have ideas for more templates, feel free to suggest them on the talk-page or code them yourself. But don't forget to update this list.
Click on a link to see information on how to include the template in question.
List
Messages and Marks
- Template:Cleanup
- Cleanup-mark-template, to mark pages violating the Styleguide
- Template:Disambig
- Disambiguation template, for disambiguation pages
- Template:Discussed
- Work in Progress template, for pages under discussion
- Template:Highlighted
- Highlighted page template, to mark pages of exceptional quality
- Template:Meanings
- Primary meaning template, for cases where disambiguation would be too much
- Template:NeedTesting
- Used to indicate articles containing unverified information
- Template:NotVerified
- Not verified template, for pages whose information is unverified
- Template:Obsolete
- "Obsolete" template, for pages whose described feature is obsolete in either RA2, YR or both
- Template:Stub
- Marks "stubs", short, incomplete temporary pages
- Template:WrongTitle
- Wrong title template, for those pages whose name can't be saved correctly due to technical reasons
Bars and Boxes
- Template:BigHorizontalBar
- Horizontal bar template, big horizontal bar with custom text
- Template:HorizontalBar
- Horizontal bar template, standard horizontal bar with custom text
- Template:ModBar
- Mod information bar template, information sidebar for mod-pages
- Template:RedHorizontalBar
- Warning red horizontal bar, like {{Obsolete}}, but text defined by a parameter
- Template:SideBar
- Side bar template, creating a sidebar which includes another page as content
Formatting
- Template:Clr
- Clear break-template, to end floating of text
- Template:Co
- Colorization-template for text, easier to use than <font> tags
- Template:Sc
- Small caps-template, shortcut to writing text in small caps
- Template:Strike
- Strike out-template, shortcut to striking out text
- Template:Sub
- Subscript-template, shortcut to writing subscript
- Template:Sup
- Superscript-template, shortcut to writing superscript
- Template:Tt
- Teletype-template, to access monospacing without HTML-hassle
- Template:TTL
- for TeleTypedLinks
- Template:U
- Underline-template, shortcut to underlining text
Markup Assistance
- Template:!
- Gets replaced by a pipe character ("|"), for situations where a real "|" would disrupt the template-syntax
- Template:Arr
- Arrow-template, to quickly generate arrows in text
- Template:Edit
- Link-template, outputs the full url to an edit page
- Template:Equal
- Gets replaced by an equal sign ("="), for situations where a real "=" would disrupt the template-syntax
- Template:Imglink
- Image-template, to link images to something other than their Image: page
- Template:Ini
- Generates an md'd link to an INI-file page
- Template:Quote
- Quote-template, to unify quotation markups
- Template:Rpo
- To mark content that only works with pd's RockPatch
- Template:Tocright
- Puts the TOC inside a right-floating table
- Template:Yro
- To mark content that only works in Yuri's Revenge
Categories
- Template:CatAllTypes
- Categorization-template for flags which are available on all *Types
- Template:Categ
- Categorization-template for {{flag|files=}}-entries
- Template:FlagMoved
- Categorization-template for {{flag|files=}}-entries that have been moved between games
Special Purpose
- Template:CnC Navigation
- Navigation-template for C&C games and add-ons
- Template:ETS
- ETS pages template, the standard ETS header pointing to the main pages
- Template:Flag
- INI-Flag template, header for all INI flag pages
- Template:OffCo
- Official Content template, header mark for ModEnc policy (or similar) pages
- Template:RockPatch
- RockPatch pages template, the standard RockPatch header pointing to the main pages
- Template:RockPatchTagRef
- RockPatch tag reference template, for the RockPatch tag reference
- Template:WeaponsRelated
- Adds a block with links to pages related to the Armament System
- Template:Wishlist/TOC
- Wishlist TOC template, the RockPatch Wishlist's table of contents
- Template:XCC NavBar
- Navigational template for quick-jumping between the tools pages
Quick Link Generators
- Template:Td
- Creates Tiberian Dawn
- Template:Ra
- Creates Red Alert
- Template:Ts
- Creates Tiberian Sun
- Template:Fs
- Creates Firestorm
- Template:Ra2
- Creates Red Alert 2
- Template:Yr
- Creates Yuri's Revenge
- Template:Rules
- Creates Rules(md).ini
- Template:Art
- Creates Art(md).ini
- Template:Sound
- Creates Sound(md).ini
- Template:Ai
- Creates Ai(md).ini
Other
- Template:N
- Minitemplate used to indicate "no" on functionality tables, checklists and the like
- Template:Q
- Minitemplate used to indicate "unknown/untested" on functionality tables, checklists and the like
- Template:Y
- Minitemplate used to indicate "yes" on functionality tables, checklists and the like
Creating your own Templates
You are free to add your own templates, under three conditions:
- The templates serves an actual valuable purpose
- You add it to the list above
- It fits the general style of the rest
To achieve point three, please consult ModEnc:Tables, ModEnc:Styleguide, and make use of pre-existing templates, e.g. the ones from the Bars and Boxes section.
In addition to the rules above, this should be included on template-pages:
<includeonly>[[Category:CategoryName]]</includeonly> <noinclude>Usage: <pre></pre> Copy-paste the code above and use as instructed.<br> Template includes Category:CategoryName automatically. </noinclude>
Use the <includeonly> block to include a category to which all pages including this template will be added, and the <noinclude> part to give a tutorial on how to use this template. Use the <pre> part to post a blank, copy-paste ready version of the template.
Look at already existing template-pages for examples.