Jump to content

Template:FixBunching: Difference between revisions

From IdeaWazaWiki
wikademia>Fabartus
m +{{interwikitmp-grp}
wikademia>Fabartus
Document left option parameter
Line 30: Line 30:
|#default=<font color="red"><big>Parameter not given Error...</big></font><br />''Template {{tl2|fixHTML}} (generator) needs <code> '''<nowiki>{{{1}}}</nowiki> ''defined''''' </code> as one of: {The sets: '''<nowiki>|beg|Beg|BEG</nowiki>''' or '''<nowiki>|mid|Mid|MID</nowiki>''' or '''<nowiki>|end|End|END</nowiki>''' }.
|#default=<font color="red"><big>Parameter not given Error...</big></font><br />''Template {{tl2|fixHTML}} (generator) needs <code> '''<nowiki>{{{1}}}</nowiki> ''defined''''' </code> as one of: {The sets: '''<nowiki>|beg|Beg|BEG</nowiki>''' or '''<nowiki>|mid|Mid|MID</nowiki>''' or '''<nowiki>|end|End|END</nowiki>''' }.
}}<noinclude><br><hr><small><center><div style="width:50%; border:1px solid; float:center; clear:both; ">The above error message is generated because this template page has no <code> '''<nowiki>{{{1}}}</nowiki> ''defined''''' </code>, and it uses a parser function switch to combine all formatting needs into this one template.</div></center></small>
}}<noinclude><br><hr><small><center><div style="width:50%; border:1px solid; float:center; clear:both; ">The above error message is generated because this template page has no <code> '''<nowiki>{{{1}}}</nowiki> ''defined''''' </code>, and it uses a parser function switch to combine all formatting needs into this one template.</div></center></small>
;per [[Wikipedia:How to fix bunched-up edit links]] a related problem... :This template is used to make right floating elements behave with others on the right margin.  
;per {{wpd|Wikipedia:How to fix bunched-up edit links}} a related problem...  
:This template is used to make right floating elements behave with others on the right margin.  
* As it has an auto width, the largest width enclosed element will set a boundary for the others.  
* As it has an auto width, the largest width enclosed element will set a boundary for the others.  
* It will take an optional parameter ''''left'''', which if defined (e.g. "|left=1|begin") will float the enclosed elements left instead of the normal right.
*Procedure is easy as 1, 2, 3...
*Procedure is easy as 1, 2, 3...
*# Place {{Tlx|FixHTML|begin}} above the top image, infobox or other right floating HTML element.
*# Place {{Tlx|FixHTML|begin}} above the top image, infobox or other right floating HTML element.

Revision as of 04:29, 21 May 2007

Parameter not given Error...
Template Template:Tl2 (generator) needs {{{1}}} defined as one of: {The sets: |beg|Beg|BEG or |mid|Mid|MID or |end|End|END }.


The above error message is generated because this template page has no {{{1}}} defined , and it uses a parser function switch to combine all formatting needs into this one template.
per Template:Wpd a related problem...
This template is used to make right floating elements behave with others on the right margin.
  • As it has an auto width, the largest width enclosed element will set a boundary for the others.
  • It will take an optional parameter 'left', which if defined (e.g. "|left=1|begin") will float the enclosed elements left instead of the normal right.
  • Procedure is easy as 1, 2, 3...
    1. Place {{FixHTML|begin}} above the top image, infobox or other right floating HTML element.
    2. Place {{FixHTML|middle}} above the next image, infobox or other right floating HTML element. And the next ... And the next ... And the next ... And the next, as needed.

Place {{FixHTML|end}} BELOW the last (Bottom) image, infobox or other right floating HTML element.

Example using Miltary Info boxes
{{FixHTML|begin}}
{{Military conflict infobox
| ... (contents)
}}
{{FixHTML|mid}}
{{Military campaign infobox
| ... (contents)
}}
{{FixHTML|mid}}
[[Image:Boy give finger to Kaiser.png|...]]
{{FixHTML|mid}}
[[Image:Kaiser Moons boy.png|...]
{{FixHTML|end}}

'Social communications in War spans a vast array of methods ... <g>

Similar templates at English sister projects [edit]
wpd Wikipedia FixBunching
cms Commons FixBunching
wbk Wikibooks FixBunching
wnw Wikinews FixBunching
wsp Wikispecies FixBunching
wvy Wikiversity FixBunching