Help:F.print.section
From Tetherless World Wiki
| Help:F.print.section | Template:F.print.section |
- author: {{#set:author=Li Ding}}Li Ding
- version: {{#set:version=0.2}}0.2
- description: {{#set:description=Print the begin,end, row of a section in table format}}Print the begin,end, row of a section in table format
- package: {{#set:package=help:smwbp_foundation_templates}}help:smwbp_foundation_templates
IMPORTANT NOTICE:
- This set of templates are created by Li Ding .
- for current version: go to http://tw.rpi.edu/portal/Help:F.print.section
Contents |
Usage
syntax
{{f.print.section
|format= 'tr' or other
|mode= 'begin', 'end', 'sub'
|text= the text of subtitle, only valid when mode= 'sub'
|text-align= only valid when mode= 'sub', 'begin'
|background= only valid when mode= 'sub', 'begin'
|width= only valid when mode= 'begin'
|float= only valid when mode= 'begin'
}}
Examples
List in section using default option "format=ul"
<!--
-->{{f.print.section |mode=begin }}<!--
-->{{f.print.section |text=Section 1 }}<!--
-->{{f.tag |test property|test page }}<!--
-->{{f.tag |test property|test page }}<!--
-->{{f.print.section |text=Section 2 }}<!--
-->{{f.tag |test property|test page }}<!--
-->{{f.tag |test property|test page }}<!--
-->{{f.print.section |text=Section 3 }}<!--
-->{{f.print.section |text=Section 4 }}<!--
-->{{f.print.section |mode=end }}<!--
-->
| Section 1 |
- test property: {{#set:test property=test page}}test page
- test property: {{#set:test property=test page}}test page
| Section 2 |
- test property: {{#set:test property=test page}}test page
- test property: {{#set:test property=test page}}test page
| Section 3 |
| Section 4 |
section using "format=tr"
<!--
-->{{f.print.section |mode=begin }}<!--
-->{{f.print.section |text=Section 1 |format=tr }}<!--
-->{{f.tag |test property|test page |format=tr }}<!--
-->{{f.tag |test property|test page |format=tr }}<!--
-->{{f.print.section |text=Section 2 |format=tr }}<!--
-->{{f.tag |test property|test page |format=tr }}<!--
-->{{f.tag |test property|test page |format=tr }}<!--
-->{{f.print.section |text=Section 3 |format=tr }}<!--
-->{{f.print.section |text=Section 4 |format=tr }}<!--
-->{{f.print.section |mode=end }}<!--
-->
| Section 1 | |
| test property | {{#set:test property=test page}}test page |
| test property | {{#set:test property=test page}}test page |
| Section 2 | |
| test property | {{#set:test property=test page}}test page |
| test property | {{#set:test property=test page}}test page |
| Section 3 | |
| Section 4 | |
section using "format=tr", "float=right", "width=20em"
<!--
-->{{f.print.section |mode=begin |float=right |width=20em}}<!--
-->{{f.print.section |text=Section 1 |format=tr }}<!--
-->{{f.tag |test property|test page |format=tr }}<!--
-->{{f.tag |test property|test page |format=tr }}<!--
-->{{f.print.section |mode=end }}<!--
-->
| Section 1 | |
| test property | {{#set:test property=test page}}test page |
| test property | {{#set:test property=test page}}test page |
Infobox (tips)
{{f.print.section |mode=begin |format=tr |float=right |width=20em }}
{{f.print.section |format=tr |background=#CCF |text=
<!-- title begin -->
'''Persons'''
<!-- title end --> }}
{{f.print.section |format=tr |background=#EEE; |text-align=left |text=
<!-- content begin -->
{{#ask: [[Category:Person]][[:+]] |format=ul |limit=3}}
* Other Person 1
* Other Person 2
<!-- content end--> }}
{{f.print.section |mode=end |format=tr }}
Text Box (width=100%)
{{f.print.section |mode=begin |format=tr |float=right |width=100% }}
{{f.print.section |format=tr |background=#CCF |text-align=left |text=
'''Persons'''
}}
{{f.print.section |format=tr |background=#EEE; |text-align=left |text=
{{#ask: [[Category:Person]][[:+]] |format=ul |limit=3}}
----
* Other Person 1
* Other Person 2
}}
{{f.print.section |mode=end |format=tr}}
Facts about F.print.sectionRDF feed
| Author | Li Ding + |
| Description | Print the begin,end, row of a section in table format |
| Package | Smwbp foundation templates + |
| Test property | Test page + |
| Version | 0.2 + |
