User:W163/sandbox/Template:Censorship-table

{{#ifeq:|begin|{|class= "wikitable sortable" cellspacing="1" cellpadding="2" style="border:1px solid #abd5f5;" !Country !Region !FHFreepressreport !RWB Pressfreedomindex ! Internetlists !ONI<BR/>political<BR/>filtering<BR/> !ONI<BR/>social<BR/>filtering<BR/> !ONI<BR/>security<BR/>filtering<BR/> !ONI<BR/>tools<BR/>filtering<BR/> !<BR/>More<BR/>info<BR/> !<BR/><BR/>Notes<BR/>
 * - valign=bottom bgcolor='#f1f5fc'
 * }}

{{#ifeq:{{trim |{{{1}}}}}|row| {{!}} align=left width=30% style="font-size: 87%; line-height: 100%;" {{!}}
 * - bgcolor='#FFFFFF' valign=top
 * align=left width=140 |
 * align=left  |
 * align=center bgcolor= |
 * align=center bgcolor= |
 * align=center bgcolor= |
 * align=center bgcolor= |
 * align=center bgcolor= |
 * align=center bgcolor= |
 * align=center bgcolor= |
 * align=center |
 * }}

{{#ifeq:{{trim |{{{1}}}}}|end| {{!}}}
 * }}

Usage
The Censorship-table template is used to build the table in the Censorship by country article. The table consists of a begin block, one or more row blocks (one for each country), and an end block. Also builds a key for the table.

Censorship-table row was the original name for the template before the use of the first positional parameter was added.

Key example
To produce a Key for a censorship by country table, use:

which produces the newer/current version of the Key:

Or use:

which produces the older/original version of the Key.

Censorship table example
Note: The data presented in the following example is not real.

To produce a censorship by country table, use:

which produces:

Remember: The data presented in the above example is not real.

Positional parameter

 * One positional parameter (required). Values:
 * key — builds a Key for the table
 * begin — required to start the table
 * row — adds a row for a country
 * end — required to end the table

Keyword parameters

 * No keyword parameters for begin or end.
 * For key there is one optional keyword parameter, version=2, which produces the newer/current version of the key.
 * For row all keyword parameters are optional except for region and one of country or alt:

Country, alternate name, and region
|country= country name |alt= alternate country name |region= { Europe | Asia | Eurasia | Oceania | NAmerica | SAmerica | Africa } If country is present and alt is not, country is used as the label and to construct wikilink targets. If both country and alt are present, country is used as the label and alt is used to construct wikilink targets. If country is not present, alt must be present, no flag icon is displayed, and alt is used as the label and to construct wikilink targets.

Freedom House Freedom of the Press Rank, Rating, and Status
|FHPressRank=  n |FHPressRating= n |FHPressStatus= { Free | Partly Free | Not Free }

Reporters Without Borders Press Freedom Rank, Index, and Status
|RWBPressRank=  n |RWBPressIndex= n.nn |RWBPressStatus= { Very good | Satisfactory | Problems | Difficult | Very serious } (key |version=2: newer/current) |RWBPressStatus= { Very good | Good | Bad | Very bad } (key: older/original)

where for key | version=2: "Very good" = "Good situation" and "Problems" = "Noticeable problems".

OpenNet Initiative (ONI) classifications
|ONIDate=            mmm yyyy |ONIPolitical=       { per | sub | sel | sus | ne | nd } |ONISocial=          { per | sub | sel | sus | ne | nd } |ONIConflictSecurity= { per | sub | sel | sus | ne | nd } |ONITools=           { per | sub | sel | sus | ne | nd } where: per=pervasive, sub=substantial, sel=selective, sus=suspected, ne=no evidence, nd=no data; and ONIDate is not currently used.

=
Internet lists: RWB Internet Enemies (e), RWB State Enemies of the Internet (se), RWB Internet Enemies and State Enemies of the Internet (e,se), RWB countries Under Surveillance (u), or Freedom House's Freedom on the Net countries at risk (r) list===== |RWBList={ e | u | se | e,se | e,r | r | u,r }

Links to Censorship, Internet censorship, Freedom of the press/speech, or Human rights in country articles
|Clink= wikilink target |IClink= wikilink target |FPlink= wikilink target |HRlink= wikilink target The link target should not include square brackets ( [ ] ) or pipe ( | ) characters, but may include a hash mark ( # ) to allow linking to a section within an article.