Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Humanipedia
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:Badge display/doc
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Module rating|beta<!-- Values: pre-alpha β’ alpha β’ beta β’ release β’ protected β’ semiprotected -- If a rating not needed/relevant, delete this template call -->}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> == Usage == Please rather use the template I've created to use this data. {{tlx|Template:Badge display}}. === Module:MilAward/data === '''EDITORS PLEASE NOTE''': Be VERY careful that you understand exactly what you are doing if you edit the data in the subpage file. If in doubt, add a topic on the talk page or ping me [[User:BoonDock]] with your questions. ==== Structure ==== Note that I have set this up to use the structure: <code>xx = {Code = "xx", Type = "", Description = "xx", Class="", Variation="", Image="XX", PageLink="XX", Country="ZAR", Note="", Org="SANDF", RecipCat="" },</code> * xx : the UNIQUE code we use to access this record. * Description : Description to be used at the top of the display-box, so it will be used when producing the link * class: intended to be for the class of the badge, it's turning out to be useful for other things as well * Variation: Mainly whether it's cloth, metal etc. What it's made out of etc * Image : File name of the file for the badge to be displayed * PageLink : Name of Wiki Article which the specific badge will link to * Country. : This should be obvious, but I haven't made a decision whether to use codes or country name * org: Organisation * RecipCat: Contents of this field are used as a category name. Not being used at the moment Examples: * {{Badge display|MilLaw|150px}} * {{Badge display|MusicMus|150px}} With different sizes: * {{Badge display|Mech61|x12px}} * {{Badge display|Mech61|x40px}} You can also float left and right: * {{Badge display|HorseAdv|150px|float=left}} * {{Badge display|EODSD|150px|float=right}} What this does is it provides the data to various routines which combine it in different ways. When a template calls one of the routines in the module, the {{{size}}} is replaced with the second un-named parameter when the template is called. That is passed on to this module to set the size of the image. The "PageLink" provides the name of an article on Wikipedia with no wikilinking. (In theory it could be a URL, but that's not preferred) The contents of the Description field can be any text which can be used as shown in the examples. Please be careful with this. Using links or curly braces "{}" or inverted commas '<nowiki/>' etc can break that entry as well as, potentially, the rest of the entries in the template. How this works, is that the first unnamed parameter when you call the template is used as the value to look up the corresponding value in this list. Once that value has been found, then the fields in that line are available to the module. These fields are combined in different ways to produce the specific formatting required for the template that called this module. For this reason, it's very important that this format is not broken or interfered with! There are now named parameters. * code: The code for the image * size: Size of the image * float: left, right or none ===A NOTE ON COUNTRIES=== Separation of countries didn't make sense. It is a lot easier to sort based on a field in the data Let's please try to keep this as organised as possible. Search the file for your Country's name. If there isn't any mention of it, then create a heading using a comment for your country and add any relevant entries there. Within the country heading, not a bad idea to create sub-headings for different things. NOTE: the data in this module is now self documenting. <includeonly>{{Sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> }}</includeonly> <noinclude> [[Category:Module documentation pages]] </noinclude>
Summary:
Please note that all contributions to Humanipedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Humanipedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Badge display
(
edit
)
Template:Error
(
edit
)
Template:Module other
(
edit
)
Template:Module rating
(
edit
)
Template:Ombox
(
edit
)
Template:Pp
(
edit
)
Template:Protection padlock
(
edit
)
Template:Template link
(
edit
)
Template:Template link expanded
(
edit
)
Template:Tl
(
edit
)
Template:Tlx
(
edit
)
Module:Arguments
(
edit
)
Module:Error
(
edit
)
Module:File link
(
edit
)
Module:Message box
(
edit
)
Module:Protection banner
(
edit
)
Module:Template link general
(
edit
)