Jump to content

Extension:AgeClassification/Age classification/fi

From mediawiki.org
This page is a translated version of the page Extension:AgeClassification/Age classification and the translation is 56% complete.

Toteutus

age-de.xml -tiedoston tallentaminen kyseisen verkkotunnuksen juurihakemistoon on yksinkertaista.

Vaikeampaa on metatiedostojen sisällyttäminen HTML-rakenteeseen:

<meta name="age-de-meta-label" content="age=0 hash: YourDigitalCode v=1.0 kind=sl protocol=all"/>

The following HTML snippet is inserted for example in the Skin Vector in the function getTemplateData of the class SkinVector or in the Skin MonoBook in the function setupSkinUserCss of the class SkinMonoBook:

	global $wgAgeClassificationMetaName, $wgAgeClassificationMetaContent;
	if ( !empty( $wgAgeClassificationMetaName ) AND !empty( $wgAgeClassificationMetaContent ) ) {
		$out->addMeta( $wgAgeClassificationMetaName, $wgAgeClassificationMetaContent );
	}

The global variables $wgAgeClassificationMetaName and $wgAgeClassificationMetaContent are then set in the LocalSettings.php according to the specifications of – in Germany – "altersklassifizierung.de".

Katso myös

Aiheesta muualla